package com.hps.shoping.order.entitys;

import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "t_order")
@ToString
@EqualsAndHashCode
public class Order implements Serializable {
    @Id
    private String id;

    @Column(name = "good_id")
    private Long goodId;

    @Column(name = "created_time")
    private Date createdTime;

    private Byte status;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * @return good_id
     */
    public Long getGoodId() {
        return goodId;
    }

    /**
     * @param goodId
     */
    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    /**
     * @return created_time
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * @param createdTime
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * @return status
     */
    public Byte getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Byte status) {
        this.status = status;
    }
}